﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DXApplicationTangche.UC.订单.service;
using DXApplicationTangche.service;
using DevExpress.XtraGrid.Demos.util;
using DXApplicationTangche.DTO;
using static DXApplicationTangche.UC.门店下单.form.Frm订单一览;
using DXApplicationTangche.UC.门店下单.form.订单修改;
using DXApplicationTangche.UC.款式异常;
using mendian;
using DXApplicationTangche.UC.门店下单.DTO;
using DiaoPaiDaYin;
using DXApplicationTangche.UC.订单一览新.订单预览新.service;
using DXApplicationTangche.UC.销售管理;
using DXApplicationTangche.UC.订单一览新.订单预览新;
using DXApplicationTangche.UC.样品管理.样品订单预览;
using DXApplicationTangche.UC.生产计划.生产批生产.service;
using DXApplicationTangche.UC.订单;
using DXApplicationTangche.UC.货号管理.service;
using DXApplicationTangche.UC.货号管理.销售款式;
using DXApplicationTangche.UC.坚山;

namespace DXApplicationTangche.model
{
    public class Model订单打印
    {
        private String orderId = "";
        private Enum订单类别 enum订单类别 = Enum订单类别.销售订单;

        public Model订单打印(String orderId, Enum订单类别 enum订单类别) {
            this.orderId = orderId;
            this.enum订单类别 = enum订单类别;
        }
        public void func_订单打印()
        {
            if (this.enum订单类别 == Enum订单类别.样品订单)
            {
                new Form样品订单预览新(this.orderId).ShowDialog();
            }
            else
            {
                new Form订单预览新(this.orderId).ShowDialog();
            }
        }
    }
}
